
const getList = require('./getlist.js')
const sendMail = require('./sendemail.js')

setInterval(getList, 2 * 60 * 60 * 1000)

module.exports = async function () {
    const list = await getList();
    sendMail(JSON.stringify(list, null, 2))
}